package com.lyk.coursearrange.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 *
 * @author lequal
 * @since 2020-03-06
 */

@TableName("tb_admin")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class AdminDto extends Model<AdminDto> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    private Integer id;
    /**
     * 管理员编号
     */
    private String adminNo;
    /**
     * 真实姓名
     */
    private String realname;
    /**
     * 用户类型1
     */
    private Integer userType;
    /**
     * 负责人编号
     */
    private String sourcepeopleId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

 /*   private List<PostDto> po;//人员的岗位*/
    private List<JurisdictionDto> jur;//权限列表
 /*   private String token;
    private Integer expTime;
    private Long genTime;*/
}
